#ifndef T_BLOCKINFO_H
#define T_BLOCKINFO_H

#include "ElaScrollPage.h"

class ElaScrollPageArea;
class ElaLineEdit;

#define T_BlockInfoIns T_BlockInfo::Instance()

class T_BlockInfo : public ElaScrollPage
{
    Q_OBJECT
public:
    T_BlockInfo(QWidget *parent = nullptr);
    ~T_BlockInfo();

    static T_BlockInfo *Instance();

    void FlushInfo();

private:
    void initUI();
    void initBlockInfo();

private slots:
    void on_flushBlockInfo();

private:
    ElaScrollPageArea *m_blockInfoArea{nullptr};

    ElaLineEdit *m_blockInfo_jgtype_le{nullptr};
    ElaLineEdit *m_blockInfo_txtype_le{nullptr};
    ElaLineEdit *m_blockInfo_inTemp_le{nullptr};
    ElaLineEdit *m_blockInfo_outTemp_le{nullptr};
    ElaLineEdit *m_blockInfo_kWh_le{nullptr};
    ElaLineEdit *m_blockInfo_voltage_le{nullptr};
    ElaLineEdit *m_blockInfo_outStopVol_le{nullptr};
    ElaLineEdit *m_blockInfo_inStopVol_le{nullptr};
    ElaLineEdit *m_blockInfo_outContinue_le{nullptr};
    ElaLineEdit *m_blockInfo_inContinue_le{nullptr};
    ElaLineEdit *m_blockInfo_out10_le{nullptr};
    ElaLineEdit *m_blockInfo_recircle_le{nullptr};
    ElaLineEdit *m_blockInfo_length_le{nullptr};
    ElaLineEdit *m_blockInfo_width_le{nullptr};
    ElaLineEdit *m_blockInfo_height_le{nullptr};
    ElaLineEdit *m_blockInfo_weight_le{nullptr};
};

#endif // T_BLOCKINFO_H
